package morning.cat.springboot.demo.config;

import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationEvent;

/**
 * @describe: 类描述信息
 * @author: morningcat.zhang
 * @date: 2019/3/4 2:11 PM
 */
public class EventPublisher {
    ApplicationContext context;

    public EventPublisher(ApplicationContext context) {
        this.context = context;
    }

    public void publishEvent(ApplicationEvent event) {
        context.publishEvent(event);
    }
}
